<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common.jsp"%>
<script type="text/javascript"
	src="/LarryMS/business/js/systemsetup/permissionsmanage/permissions/index.js"></script>

<link rel="stylesheet" type="text/css"
	href="/LarryMS/business/common/ztree/css/zTreeStyle/zTreeStyle.css"
	media="all">
</head>
<body>
	<shiro:hasPermission name="systemsetup_permissionsmanage_permissions_addIndex">
		<div style="margin-top: 30px; margin-bottom: 20px; margin-left: 30px">
			<button id="addPermissions" class="layui-btn layui-btn-primary">添加权限</button>
		</div>
	</shiro:hasPermission>

	<div class="layui-row layui-col-space10">
		<div class="layui-col-sm3 ">
			<fieldset class="layui-elem-field">
				<legend>权限</legend>
				<div class="layui-field-box">
					<ul id="treeDemo" class="ztree"></ul>
				</div>
			</fieldset>
		</div>
		<div class="layui-col-sm9 ">
			<fieldset class="layui-elem-field">
				<legend>列表</legend>
				<table id="permissionsList" lay-filter="permissionsList"
					class="layui-hide"></table>
			</fieldset>
		</div>
	</div>


	<script type="text/html" id="permissionsBar">
		<shiro:hasPermission name="systemsetup_permissionsmanage_permissions_detailIndex">
		<a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="detail">查看</a>
	</shiro:hasPermission>
<shiro:hasPermission name="systemsetup_permissionsmanage_permissions_editIndex">
<a class="layui-btn layui-btn-xs" lay-event="edit">编辑</a>
	</shiro:hasPermission>


  		
  		
  	
	</script>

	<script type="text/html" id="statusTpl">
  		<!-- 这里的 checked 的状态只是演示 -->
  		<input type="checkbox" name="lock" value="{{d.permissionId}}" title="禁用" lay-filter="lockDemo" {{ d.status == 0 ? 'checked' : '' }}>
	</script>

</body>
</html>